package com.tms.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tms_logistics
 */
@TableName(value ="t_tms_logistics")
@Data
public class TmsLogistics implements Serializable {
    /**
     * 
     */
    @TableId(value = "logistics_id", type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    @TableField(value = "logistics_code")
    private String code;

    /**
     * 
     */
    @TableField(value = "logistics_driver_id")
    private Integer driverId;

    /**
     * 
     */
    @TableField(value = "logistics_customer_id_from")
    private Integer customerIdFrom;

    /**
     * 
     */
    @TableField(value = "logistics_customer_id_to")
    private Integer customerIdTo;

    /**
     * 
     */
    @TableField(value = "logistics_start_time")
    private Date startTime;

    /**
     * 
     */
    @TableField(value = "logistics_arrived_time")
    private Date arrivedTime;

    /**
     * 
     */
    @TableField(value = "logistics_type")
    private String type;

    /**
     * 
     */
    @TableField(value = "logistics_name")
    private String name;

    /**
     * 
     */
    @TableField(value = "logistics_company")
    private String company;

    /**
     * 
     */
    @TableField(value = "logistics_status")
    private String status;

    /**
     * 
     */
    @TableField(value = "logistics_get_status")
    private String getStatus;

    /**
     * 
     */
    @TableField(value = "logistics_get_time")
    private Date getTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TmsLogistics other = (TmsLogistics) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDriverId() == null ? other.getDriverId() == null : this.getDriverId().equals(other.getDriverId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getCustomerIdFrom() == null ? other.getCustomerIdFrom() == null : this.getCustomerIdFrom().equals(other.getCustomerIdFrom()))
            && (this.getCustomerIdTo() == null ? other.getCustomerIdTo() == null : this.getCustomerIdTo().equals(other.getCustomerIdTo()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getArrivedTime() == null ? other.getArrivedTime() == null : this.getArrivedTime().equals(other.getArrivedTime()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCompany() == null ? other.getCompany() == null : this.getCompany().equals(other.getCompany()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getGetStatus() == null ? other.getGetStatus() == null : this.getGetStatus().equals(other.getGetStatus()))
            && (this.getGetTime() == null ? other.getGetTime() == null : this.getGetTime().equals(other.getGetTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getDriverId() == null) ? 0 : getDriverId().hashCode());
        result = prime * result + ((getCustomerIdFrom() == null) ? 0 : getCustomerIdFrom().hashCode());
        result = prime * result + ((getCustomerIdTo() == null) ? 0 : getCustomerIdTo().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getArrivedTime() == null) ? 0 : getArrivedTime().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCompany() == null) ? 0 : getCompany().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getGetStatus() == null) ? 0 : getGetStatus().hashCode());
        result = prime * result + ((getGetTime() == null) ? 0 : getGetTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", driver_id=").append(driverId);
        sb.append(", customer_id_from=").append(customerIdFrom);
        sb.append(", customer_id_to=").append(customerIdTo);
        sb.append(", start_time=").append(startTime);
        sb.append(", arrived_time=").append(arrivedTime);
        sb.append(", type=").append(type);
        sb.append(", name=").append(name);
        sb.append(", company=").append(company);
        sb.append(", status=").append(status);
        sb.append(", get_status=").append(getStatus);
        sb.append(", get_time=").append(getTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}